home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
remote
/
sflag110.zip
/
SETFLAG.DOC
next >
Wrap
Text File
|
1993-01-13
|
4KB
|
171 lines
SetFlag
Copyright (c)1992-93
Cabell B. Clarke Jr.
ALL RIGHTS RESERVED
--------------
--- DISCLAIMER
This software is being released as FREEWARE. Anyone can use it for anything
they want. It is not guaranteed to do anything but take up space on your
disk. If you break it you own both parts. I am not responsible for
anything. If you do not believe that, just ask my kids.
---------
--- ABOUT
SetFlag is a simple little program that will toggle user flags in your
RemoteAccess USERS.BBS file from the DOS command line. I needed a quick and
dirty way to do this so I wrote this program in an afternoon. It's no speed
demon and it isn't pretty but it seems to work fine on my system. Maybe it
will work on yours.
---------
--- FIRST
You should first place SETFLAG.EXE in some directory already in your PATH
and change to the directory containing your USERS.BBS file. If you go ahead
and type SetFlag, you will hear the BEEP and see a brief summary for the
Command Line Syntax.
----------
--- SYNTAX
The syntax for using SetFlag is as follows:
SetFlag {-|/}parameters [{-|/}switches]
where parameters are required on the command line. The supported parameters
are:
<flagnum> a1..d8 RA User Flags
ON|OFF turn flags ON or OFF
? display HELP screen
Switches are optional and tell Setflag to process one and only one user
record. Running Setflag with no switches will change ALL USERS' flags in
your USERS.BBS file. The supported switches are:
-R<recordnumber> specific record number
-N<user_name> specific User's name (*note)
(*note - the first and last name should be separated with an
underscore _ )
You may preface both parameters and switches with a dash (-) or frontslash
(/) character.
Some examples are:
SetFlag b4 on
turns the b4 flag on for ALL users
setflag A7 OFF
turns the a7 flag OFF for all users
setflag d8 on -nCabell_Clarke
turns the D8 flag on for user Cabell Clarke ONLY!
setflag off -r0 d8
turns the d8 flag off for user #0
setflag ?
displays a brief HELP screen
That's all it is to it. There is very limited error-checking to save code
space and you should remember to change to the directory containing your
USERS.BBS file since Setflag will not look anywhere else for it.
---------
--- FLAGS
In case you were wondering about conventions (and I know you were):
ON = TRUE = X
OFF = FALSE = -
-----------
--- HISTORY
1.10
----
(*) Added the ability to process individual user records via the switches
-R and -N.
(*) Cleaned up code a bit.
1.00
----
(*) Initial Release for Public Consumption
--------
--- INFO
This program has been tested extensively for 15 minutes on my system. Of
course, there are no bugs in it, but should you want to contact me anyway,
here's how:
Cabell Clarke
The Boot Factory BBS
804-262-9289
FidoNet 1:264/19
If you like the program and want to register, send me a postcard to the
address below.
5513 Cottage St.
Richmond, VA 23228
Also try out my ValidOOR User Verification System for RemoteAccess. A file
request for magic name VDR will get you the latest release for RemoteAccess
BBS. Anyone may request in any nodelist and the program is less that 100k.